/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.serc.pensieve.data;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
 *
 * @author ALI FARHAN
 */
public class DAO {
    
    static Connection conn;
    public Connection makeConn() throws ClassNotFoundException, SQLException
    {
        Class.forName("com.mysql.jdbc.Driver");
	 conn = DriverManager.getConnection("jdbc:mysql://localhost/pensieve","root","root");


        return conn;
    }
    public void closeConn() throws SQLException
    {
        conn.close();
    }
    
}
